package com.fourWork.workFive;

import java.net.Socket;

public class ClientUser01 {
    public static void main(String[] args) {
        try {

            Socket socket = new Socket("127.0.0.1", 8888);
//            Thread thread=new Sent(socket);
//            Thread thread1=new Receive(socket);
            Thread thread = new SentFile(socket);
            Thread thread1 = new ReceiveFile(socket);
            //启动线程
            thread1.start();
            thread.start();
            //等待线程执行完后，执行下一个
            thread1.join();
            thread.join();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
